package com.ssy.lingxi.contract.controller;

import com.ssy.lingxi.common.controller.BaseController;
import com.ssy.lingxi.common.response.PageData;
import com.ssy.lingxi.common.response.Wrapper;
import com.ssy.lingxi.contract.model.vo.common.request.PurchaseInviteBidPageVO;
import com.ssy.lingxi.contract.model.vo.common.response.PurchaseInviteBidQueryVO;
import com.ssy.lingxi.contract.service.IPurchaseInviteBidService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
import javax.validation.Valid;

/**
 * @menu 采购招标合同
 * @author 伍将
 * @date 2021/03/05
 * @version 2.0.0
 */
@RestController
@RequestMapping("/contract/purchase/invite/bid")
public class PurchaseInviteBidController extends BaseController {

    @Resource
    private IPurchaseInviteBidService service;

    /**
     * 分页查询待创建采购招标合同
     * @author 伍将
     * @date 2021/3/5
     **/
    @RequestMapping(value = "/pageToBeCreate", method = RequestMethod.GET)
    public Wrapper<PageData<PurchaseInviteBidQueryVO>> pageToBeCreate(HttpServletRequest httpRequest, @Valid PurchaseInviteBidPageVO pageVO) {
        return service.pageToBeCreate(getSysUser(httpRequest), pageVO);
    }
}
